package com.ads.tpgrupo4.cpr.persistence.app;

import com.ads.tpgrupo4.persistence.api.IPersistenceService;

public class StartServer {
    
	public static void main(String[] args) {
	
		System.setProperty("java.security.policy", "java.policy");
		
		if(System.getSecurityManager() == null) {
            System.setSecurityManager(new SecurityManager());
        }
		
		System.setProperty("java.rmi.server.codebase", 
				IPersistenceService.class.getProtectionDomain().getCodeSource().getLocation().toString());
		
		new BS().publishService();
	}
	
}
